package com.example.operation.repairrecordinfo.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.operation.repairrecordinfo.dao.RepairRecordInfoMapper;
import com.example.operation.repairrecordinfo.entity.RepairRecordInfo;
import com.example.operation.repairrecordinfo.service.RepairRecordInfoService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 报修记录信息表 服务实现类
 * </p>
 *
 * @author liqiang
 * @since 2021-11-01
 */
@Service
public class RepairRecordInfoServiceImpl extends ServiceImpl<RepairRecordInfoMapper, RepairRecordInfo> implements RepairRecordInfoService {
    /**
     * 分页查询
     * @param repairRecordInfo
     * @param page
     * @param limit
     * @return
     */
    @Override
    public IPage<RepairRecordInfo> paging(RepairRecordInfo repairRecordInfo, int page, int limit) {
        return baseMapper.selectPage(new Page<>(page, limit), new QueryWrapper<>(repairRecordInfo));
    }
}
